import * as client from './client'
import urlConfig from './urlConfig'


export class AllowPromotionVoucherRpn {
    //是否成功（1=>成功）
    public isSuccess: number;
    //状态码？
    public code: string;
    //描述
    public description: string;
    //返回数据
    public resData: boolean;

}

/**
 * 获取公钥
 */
export async function exec(userInfo:any) {
    const data = await client.exec(urlConfig.isAllowPromotionVoucher,{},userInfo);
    return JSON.parse(data) as AllowPromotionVoucherRpn;
}